﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using EVEMap;
using MathNet.Numerics;

namespace EVEMapToy1
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        eveMap m_Map;

        public MainWindow()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            int a = 1;
            string ConnStr = "Server=.\\SQLEXPRESS;database=master;Trusted_Connection=true";
            eveMapDB tmp = new eveMapDB(ConnStr);
            tmp.connect();
            List<string> regionNames = tmp.RegionNames();
            foreach (string s in regionNames)
                comboBox1.Items.Add(s);

            comboBox1.SelectedIndex = 0;
            m_Map = new eveMap();
            tmp.initSolarSystemGraph(m_Map);
        }

        private void comboBox1_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }
    }
}
